var express = require('express');
var categoryController = require("../controller/categoryController.js")
var router = express.Router();

// 分类列表路由
router.get("/list", categoryController.CategoryList)

// 级联菜单数据路由
router.get("/addlist", categoryController.AddCategoryList)

// 添加分类路由
router.post("/add", categoryController.AddCategory)
// 修改分类路由
router.post("/edit", categoryController.EditCategory)

// 删除分类
router.get("/dele", categoryController.DeleCategory)
module.exports = router;